package kr.co.redcircle.service.oAuth.api.sina.weibo;

import kr.co.redcircle.service.oAuth.service.SinaWeibo20Api;

import org.scribe.model.OAuthConfig;

public class Weibo20 extends SinaWeibo20Api{

	private static final String AUTHORIZE_URL = "https://api.weibo.com/oauth2/authorize?client_id=%s&redirect_uri=%s&response_type=code";

	@Override
	public String getAccessTokenEndpoint() {
		return "https://api.weibo.com/oauth2/access_token";
	}

	@Override
	public String getAuthorizationUrl(OAuthConfig config) {
		return String.format(AUTHORIZE_URL, config.getApiKey(), config.getCallback());
	}

}
